<?php include_partial("global/navigation")?>
<div class="main_content">
  <h2 class="pg-title"><?php echo $Faqs->getTitle(); ?></h2>
  <div class="fag_index">
    <h4 class="gfont" style="color: black; margin: 20px 0px 15px 0px; " ><?php echo __("Índice de Preguntas") ?></h4>
  </div>
  <div class="faq_content">
    <?php echo $Faqs->getRawValue()->getInfo(); ?>
  </div>
</div>
<script type="text/javascript">
(function($){
  var $ul=$("<ul></ul>");
  $(".faq_content").find("h3").each(function(){
    var $this=$(this);
    var id =$this.text().replace(/ /ig,"-");
    $this.attr("id",id);
    $("<li></li>").append($("<a></a>").attr({href:("#"+id)}).text($this.text())).appendTo($ul);
  });
  $ul.appendTo(".fag_index");
})(jQuery);
</script>